home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / aijournl / 1986_10 / aiapp8.fig < prev    next >
Text File  |  1986-07-16  |  3KB  |  41 lines

  1.  
  2.  data_base
  3.     |
  4.     |
  5.     V
  6. |----------|   
  7. ⁿ   cons   ⁿ   
  8. |----------|   
  9. |      ------->  pointer to first rule
  10. |----------|   
  11. |          |   
  12. |----|-----|   
  13.      |         
  14.      V         
  15. |----------|    |----------|                                        |----------|                                      
  16. ⁿ   cons   ⁿ    ⁿ   cons   ⁿ                                        ⁿ   cons   ⁿ
  17. |----------|    |----------|                                        |----------|
  18. |      -------> |      -------------------------------------------> |      --------> NIL                   
  19. |----------|    |----------|                                        |----------|                                       
  20. |          |    |          |                                        |          |                                       
  21. |----|-----|    |----|-----|                                        |----|-----|                                       
  22.      |               |                                                   |                                             
  23.      V               V                                                   V                                             
  24.                  |----------|     |----------|     |----------|     |----------|     |----------|    |----------|      
  25.   rest of        ⁿ   cons   ⁿ     ⁿ   cons   ⁿ     ⁿ   cons   ⁿ     ⁿ   cons   ⁿ     ⁿ   cons   ⁿ    ⁿ   cons   ⁿ      ì
  26.  data base       |----------|     |----------|     |----------|     |----------|     |----------|    |----------|      ì
  27.                  |      --------->|      --------> |      ----->NIL |      --------->|      -------> |      ----->NIL  ì
  28.                  |----------|     |----------|     |----------|     |----------|     |----------|    |----------|      ì
  29.                  |          |     |          |     |          |     |          |     |          |    |          |      ì
  30.                  |----|-----|     |----|-----|     |----|-----|     |----|-----|     |----|-----|    |----|-----|      ì
  31.                       |                |                |                |                |               |            ì
  32.                       V                V                V                V                V               V            ì
  33.                  |----------|     |----------|     |----------|     |----------|     |----------|    |----------|      ì
  34.                  ⁿ   func   ⁿ     ⁿ constant ⁿ     ⁿ variable ⁿ     ⁿ   func   ⁿ     ⁿ variable ⁿ    ⁿ constant ⁿ      ì
  35.                  |----------|     |----------|     |----------|     |----------|     |----------|    |----------|      ì
  36.                  |   likes  |     |   paul   |     |    X     |     |   likes  |     |    X     |    |   wine   |      ì
  37.                  |----------|     |----------|     |----------|     |----------|     |----------|    |----------|      
  38.                                                                                                                       
  39. Figure 8 - The structure of "likes(paul,X) :- likes(X,wine) ."
  40.            This is the second sentence in the data base.
  41.